<template>
	<view>
		<myindex ref="myindex"></myindex>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	import myindex from "../my/myindex.vue";
	export default{
		components:{
			myindex
		}, 
		data(){
			return {
				src:""
			}
		},
		onLoad(){
			let mobile= uni.getStorageSync('mobile');
			const url= this.http.httpsLian.qrCodeStudentLoginBack+"?mobile="+mobile;
			this.src='https://open.weixin.qq.com/connect/oauth2/authorize?appid='+this.http.httpsLian.appid+'&redirect_uri=' + encodeURIComponent(url) + '&response_type=code&scope=snsapi_base&state=state#wechat_redirect';
			uni.showLoading({
				title: '开启授权中'
			});
			setTimeout(()=>{
				uni.hideLoading();
			    uni.navigateBack(1);
			},2000)
		}
	}
</script>

<style>
</style>